<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>原料管理</title>

    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/demo/demo.css">
    <link rel="stylesheet" type="text/css" href="../../../jquery-easyui-1.6.7/themes/bootstrap/easyui.css">
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/jquery.min.js"></script>
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/jquery.color.js"></script>
    <script type="text/javascript" src="../../../jquery-easyui-edatagrid/jquery.edatagrid.js"></script>
    <script type="text/javascript" src="../../../jquery-easyui-1.6.7/locale/easyui-lang-zh_CN.js"></script>

    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.common.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.default.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.default.mobile.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../KendoUI/styles/kendo.rtl.min.css" />
    <script type="text/javascript" src="../../../KendoUI/js/jszip.min.js"></script>
    <script type="text/javascript" src="../../../KendoUI/js/kendo.all.min.js"></script>
    <script type="text/javascript" src="../../../KendoUI/js/messages/kendo.messages.zh-CN.min.js"></script>

<!--自定义-->
    <script type="text/javascript" src="../../../publicJS/publicJS.js" ></script>
    <link rel="stylesheet" type="text/css" href="../../../publicJS/global.css" />

    <script src="../../js/whitebillorder.js" type="text/javascript"></script>
    <link href="../../css/whitebillorder.css" type="text/css" rel="stylesheet" >

    <link href="../../css/whitebillorderA.css" type="text/css" rel="stylesheet">
    <script src="../../js/whitebillorderA.js" type="text/javascript"></script>

    <link href="../../css/whitebillorderB.css" type="text/css" rel="stylesheet">
    <script src="../../js/whitebillorderB.js" type="text/javascript"></script>

    <!--    /*设置文本框，拉下字体*/-->
    <link href="../../css/settextbox.css" type="text/css" rel="stylesheet" >

    <script src="../../js/loadEventUtil.js" type="text/javascript"></script>

</head>
<body>


<div class="plan_main">
    <div class="plan_top">
        <div class="plandate">
            <div class="demos">
                <label>起始日期：</label>
                <input id="start" class="easyui-datebox"
                       data-options="width:120,value:getDate(-7),disabled:false">
            </div>
            <div class="demos">
                <label>终止日期：</label>
                <input id="end" class="easyui-datebox"
                       data-options="width:120,value:getDate(0),disabled:false">
            </div>
        </div>

        <div class="planbutton" id="north">

            <a id="updateplan" href="#" class="easyui-linkbutton" onclick="refresh()"
               data-options="iconCls:'icon-search',iconAlign:'bottom',width:50">查询</a>

            <a id="addplan0" href="#" class="easyui-linkbutton" onclick="addplan('新增订单')"  title=""
               data-options="iconCls:'icon-add',iconAlign:'bottom',width:80">新增订单</a>
            <a id="addplan1" href="#" class="easyui-linkbutton" onclick="addplan('生成计划单')" title=""
               data-options="iconCls:'icon-save',iconAlign:'bottom',width:90">生成计划单</a>

            <!--            <a id="printplan" href="#" class="easyui-linkbutton" onclick=""-->
            <!--               data-options="iconCls:'icon-print',iconAlign:'bottom'">打印</a>-->
            <a id="cleanupplan" href="#" class="easyui-linkbutton" onclick="btn_cancel_filter()"
               data-options="iconCls:'icon-remove',iconAlign:'bottom',width:80">清除过滤</a>

            <a id="setok" href="#" class="easyui-linkbutton" onclick="setfinish()"
               data-options="iconCls:'icon-ok',iconAlign:'bottom',width:80">设置完工</a>
            <a id="setclean" href="#" class="easyui-linkbutton" onclick="cancelfinish()"
               data-options="iconCls:'icon-clear',iconAlign:'bottom',width:80">取消完工</a>
            <a id="closeplan" href="#" class="easyui-linkbutton" onclick="closeTab()"
               data-options="iconCls:'icon-no',iconAlign:'bottom',width:50">关闭</a>



        </div>
    </div>

    <div class="plan_text">
        <div id="tabs" class="easyui-tabs"data-options="fit:true,onSelect:onSelect">
            <div title="未完工">
                <table id="bill"></table>
            </div>
            <div title="全部">
                <table id="bill_a"></table>
            </div>
            <div title="已作废">
                <table id="bill_b"></table>
            </div>
        </div>
        <!--        <table id="bill"></table>-->
    </div>

    <!--         data-options="modal:true,minimizable:false,maximizable:false,closable:false,maximized:true">-->
    <div id="A" class="easyui-window" title="订单编辑"
         data-options="width:1100,height:600,modal:true,minimizable:false,maximizable:false,closable:false,maximized:false,
         closed:true,collapsible:false,draggable:true">
        <div class="plan_mainA">
            <div class="plan_topA" id="topA">
                <div style="width: 85%;float: left;">
                <a id="addplanA" href="#" class="easyui-linkbutton butA" onclick="ClearallorderBill()"
                   data-options="iconCls:'icon-add',iconAlign:'left'">新增</a>
                <a id="updateplanA" href="#" class="easyui-linkbutton butA" onclick="updateorderbillA()"
                   data-options="iconCls:'icon-reload',iconAlign:'left'">修改</a>
                <a id="saveplanA" href="#" class="easyui-linkbutton butA" onclick="saveA()"
                   data-options="iconCls:'icon-save',iconAlign:'left',">保存</a>
                <a id="copyplanA" href="#" class="easyui-linkbutton butA" onclick="copyOrderbillA()"
                   data-options="iconCls:'icon-search',iconAlign:'left'">复制</a>

                <a id="add_line" href="#" class="easyui-linkbutton butAA" onclick="btn_add_line()"
                   data-options="iconCls:'icon-add',iconAlign:'left'" >新增行</a>
                <a id="copy_line" href="#" class="easyui-linkbutton butAA" onclick="btn_copy_line()"
                   data-options="iconCls:'icon-remove',iconAlign:'left'" >复制行</a>
                <a id="delete_line" href="#" class="easyui-linkbutton butAA" onclick="btn_delete_line()"
                   data-options="iconCls:'icon-clear',iconAlign:'left'" >   删除行</a>

<!--                                <a id="printplanA" href="#" class="easyui-linkbutton butA" onclick="setpinmingDW()"-->
<!--                                   data-options="iconCls:'icon-print',iconAlign:'left'">打印</a>-->
                    <a id="reloadA" href="#" class="easyui-linkbutton butA" onclick="reloadPM()"
                       data-options="iconCls:'icon-reload',iconAlign:'left'">刷新</a>

                    <a id="deleteplanA" href="#" class="easyui-linkbutton butA" onclick="deleteplanA()"
                       data-options="iconCls:'icon-cancel',iconAlign:'left'">作废</a>
                <a id="closeplanA" href="#" class="easyui-linkbutton butA" onclick="closeTabA()"
                   data-options="iconCls:'icon-no',iconAlign:'left'">关闭</a>
                </div>
                <div style="width: 15%;float: left;">
                        <img id="saved" src="../../../img/tools/stateicon/已保存.jpg" style="width:90px;height:30px;"/>
                        <img id="audited" src="../../../img/tools/stateicon/已审核.jpg" style="width:90px;height:30px;"/>
                        <img id="invalid" src="../../../img/tools/stateicon/已作废.jpg" style="width:90px;height:30px;"/>
                </div>
            </div>

            <div class="plan_textA">
                <div class="textA_top" >
                    <div class="textA_top_10" ></div>
                    <label >单据编号:</label>
                    <input id="billcode"  class="easyui-textbox" data-options="" style="height:30px;width:120px">
                    <label >单据日期:</label>
                    <input id="billcodeDate" type="text" class="easyui-datebox" required="required" style="height:30px;width:120px">
<!--                    <label >交货日期:</label>-->
<!--                    <input id="deliverydate" type="text" class="easyui-datebox" required="required" style="height:30px;width:120px">-->
                    <label>客户:</label>
                    <input  id="clientName" class="easyui-combobox"  data-options="limitToList:'true',required:'true'"
                            style="height:30px;width:170px">
                    <label >订单号:</label>
                    <input id="ddh"  class="easyui-textbox" data-options="required:'true'" style="height:30px;width:170px">
                </div>

                <div class="textA_bottom">
                    <table id="billgrid" style="width:100%;height:100%"></table>
                </div>

            </div>
        </div>

    </div>

    <div id="B" class="easyui-window" title="计划单编辑"
         data-options="width:1200,height:700,modal:true,minimizable:false,maximizable:false,closable:false,maximized:false,
         closed:true,collapsible:false,draggable:true">
        <div class="plan_mainB">
            <div class="plan_topB" id="topB">
                <div style="width: 60%;float: left;">
                <a id="addplanB" href="#" class="easyui-linkbutton butB" onclick="copyplanB_N()"
                   data-options="iconCls:'icon-add',iconAlign:'left'">新增</a>
                <a id="updateplanB" href="#" class="easyui-linkbutton butB" onclick="updateplanB()"
                   data-options="iconCls:'icon-reload',iconAlign:'left'">修改</a>
                <a id="saveplanB" href="#" class="easyui-linkbutton butB" onclick="saveB()"
                   data-options="iconCls:'icon-save',iconAlign:'left',">保存</a>
                <a id="copyplanB" href="#" class="easyui-linkbutton butB" onclick="copyplanB()"
                   data-options="iconCls:'icon-search',iconAlign:'left'">复制</a>
<!--                <a id="printplanB" href="#" class="easyui-linkbutton butB" onclick="printplanbill()"-->
<!--                   data-options="iconCls:'icon-print',iconAlign:'left'">打印</a>-->
                <a id="deleteplanB" href="#" class="easyui-linkbutton butB" onclick="deleteplanB()"
                   data-options="iconCls:'icon-cancel',iconAlign:'left'">作废</a>
                <a id="closeplanB" href="#" class="easyui-linkbutton butB" onclick="closeTabB()"
                   data-options="iconCls:'icon-no',iconAlign:'left'">关闭</a>
                </div>
                <div style="width: 40%;float: left;">
                    <img id="savedB" src="../../../img/tools/stateicon/已保存.jpg" style="width:90px;height:30px;"/>
                    <img id="auditedB" src="../../../img/tools/stateicon/已审核.jpg" style="width:90px;height:30px;"/>
                    <img id="invalidB" src="../../../img/tools/stateicon/已作废.jpg" style="width:90px;height:30px;"/>
                </div>
            </div>
            <div class="plan_textB">
<!--                <div  style="position: absolute;left: 60px;top:60px;border: 1px solid red;">-->
                <div  style="position: absolute;height:100%;width: 30%; border: 1px solid #DBCFC3;">
                    <ul class="info" style="list-style:none;padding: 2px;position: absolute;left:40px">
                        <li class="info-item">
                            <nobr>
                                <label >计划单号:</label>
                                <input id="planbillcode" type="text" class="easyui-textbox" required="required" style="height:35px;width:200px">
                            </nobr>
                        </li>
                        <li class="info-item">
                            <nobr>
                                <label >单据日期:</label>
                                <input id="billcodeDateB" type="text" class="easyui-datebox" required="required" style="height:35px;width:200px">
                            </nobr>
                        </li>
<!--                        <li class="info-item">-->
<!--                            <label >交货日期:</label>-->
<!--                            <input id="deliverydateB" type="text" class="easyui-datebox" required="required" style="height:35px;width:200px">-->
<!--                        </li>-->
                        <li class="info-item">
                            <label >订单号:</label>
                            <input id="ddhB"  class="easyui-textbox" data-options="" style="height:35px;width:200px">
                        </li>
                        <li class="info-item">
                            <label>客户:</label>
                            <input  id="clientNameB" class="easyui-combobox"  data-options="limitToList:'true',required:'true'" style="height:35px;width:200px">
                        </li>
                        <li class="info-item">
                            <label>品  名:</label>
                            <input  id="pmB" class="easyui-combobox"  data-options="limitToList:'true',required:'true'" style="height:35px;width:200px">
                        </li>
                        <li class="info-item">
                            <label>颜  色:</label>
                            <input  id="colorNameB" class="easyui-textbox" data-options="" style="height:35px;width:200px">
                        </li>
<!--                        <li class="info-item">-->
<!--                            <label>色  号:</label>-->
<!--                            <input  id="colorcode" class="easyui-textbox" data-options="" style="height:35px;width:200px">-->
<!--                        </li>-->
<!--                        <li class="info-item">-->
<!--                            <label>件数:</label>-->
<!--                            <input id="psB" class="easyui-textbox" data-options="" style="height:35px;width:200px">-->
<!--                        </li>-->
                        <li class="info-item">
                            <label>单价:</label>
                            <input id="priceB" class="easyui-textbox" data-options="" style="height:35px;width:200px">
                        </li>
                        <li class="info-item">
                            <label>计划重量:</label>
                            <input id="planqtyB" class="easyui-textbox" data-options="required:'true'" style="height:35px;width:200px">
                        </li>
                        <li class="info-item">
                            <label>备注:</label>
                            <input id="memoB" class="easyui-textbox" data-options="multiline:'true'" style="height:70px;width:200px">
                        </li>
                    </ul>
                </div>
                <div  style="position: absolute;height:calc(100% - 30px);width: 70%; left: 30%;border: 1px solid #DBCFC3;">
                    <table id="plandetail" style="width:100%;height:100%"></table>
                </div>
            </div>
        </div>

    </div>

    <div id="C" class="easyui-window" title="编辑页面"
         style="width:330px;height:260px;padding:10px;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:true,
                       closed:true,draggable:true">
        <br>
        <label style="font-size: 14px;font-weight: bold;">作废原因：</label>
        <input id="tovoidMemo" class="easyui-textbox" data-options="multiline:'true',required:'true'" style="height:70px;width:200px">
        <br><br>
        <label style="font-size: 14px;font-weight: bold;">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
        <input id="passC" class="easyui-passwordbox" data-options="multiline:'true',required:'true'" style="height:30px;width:200px">
        <br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input onclick="tovoidMemoSaveC()" class="numberbuttonY" type="button" value="保存"
               style="height: 35px;width: 90px">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input onclick="tovoidMemocancelC()" class="numberbuttonY" type="button" value="取消"
               style="height: 35px;width: 90px">
    </div>

    <div id="D" class="easyui-window" title="编辑页面"
         style="width:330px;height:260px;padding:10px;"
         data-options="modal:true,collapsible:false,minimizable:false,maximizable:false,closable:true,
                       closed:true,draggable:true">
        <br>
        <label style="font-size: 14px;font-weight: bold;">作废原因：</label>
        <input id="tovoidMemoD" class="easyui-textbox" data-options="multiline:'true',required:'true'" style="height:70px;width:200px">
        <br><br>
        <label style="font-size: 14px;font-weight: bold;">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label>
        <input id="passD" class="easyui-passwordbox" data-options="multiline:'true',required:'true'" style="height:30px;width:200px">
        <br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input onclick="tovoidMemoSaveD()" class="numberbuttonY" type="button" value="保存"
               style="height: 35px;width: 90px">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input onclick="tovoidMemocancelD()" class="numberbuttonY" type="button" value="取消"
               style="height: 35px;width: 90px">
    </div>

</div>


</body>
</html>